Merged
Conversation
Member
Thematiq
commented
Feb 24, 2026
- Fix issues in PyBBT
- Add example notebook
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds an example Jupyter notebook demonstrating the usage of the bbt-test package and fixes bugs in the PyBBT implementation. The changes primarily focus on improving the rope_comparison_control_table method and refactoring test data for better maintainability.
Changes:
- Fixed logic in
rope_comparison_control_tableto correctly classify models as better/worse/equivalent/unknown relative to a control model - Added comprehensive example notebook (
01_simple_bbt_comparison.ipynb) with molecular benchmarking data - Refactored test constants into module-level variables for improved code organization
- Replaced
coveragewithpytest-covin development dependencies - Added validation for unexpected keyword arguments in decorated functions
- Exposed
ALL_PROPERTIES_COLUMNSas a class attribute for external use
Reviewed changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Updated dependency lock file to add pytest-cov and tomli (transitive dependency) |
| pyproject.toml | Replaced coverage with pytest-cov in dependency groups |
| bbttest/bbt/py_bbt.py | Fixed rope_comparison_control_table logic to use raw interpretation symbols; exposed ALL_PROPERTIES_COLUMNS |
| bbttest/bbt/_utils.py | Added validation for unexpected keyword arguments |
| bbttest/bbt/_types.py | Added weak_interpretation_raw and strong_interpretation_raw to column types |
| tests/regression/test_benchmarking_mol.py | Refactored test data into constants; added new test for rope_comparison_control_table |
| tests/bbt/test__utils.py | Added test for unexpected keyword argument validation |
| examples/01_simple_bbt_comparison.ipynb | New comprehensive example notebook with explanations |
| datasets/benchmarking_mol.csv | Added molecular benchmarking dataset for examples |
| README.md | Added link to example notebook |
| Makefile | Added ruff-fix target and made test-all depend on it |
| .gitignore | Added patterns to ignore coverage files and notebooks (except examples) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.